<ui:composition
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">

    
    

    <script type="text/javascript">
        $(function () {
               
                var fechaFin = new Date(${poolSessionBean.stringFechaFin} );
                $('#defaultCountdown').countdown({until: fechaFin, serverSync: serverTime()});
                $('#textCountdown').countdown({until: fechaFin, serverSync: serverTime, layout: 'Finaliza en {dn} {dl}  {hn} {hl}  {mn} {ml}  {sn} {sl} '});
        });

        function serverTime() {
            var horaServer = new Date(${poolAplicacionBean.stringFechaServer});
            return horaServer;
        }
    </script>

    <div id="" style="height: 10px; margin-top: 1px;margin-bottom: 1px; font-weight: bold;" > Finaliza en </div>

    <div id="defaultCountdown" style="height: 55px; "></div>

    <!--
    <div id="textCountdown" style="height: 15px; margin-top: 1px;"></div>
    -->
    
</ui:composition>
